<div class="row">
    <div class="col-md-12">
        <!--breadcrumbs start -->
        <ul class="breadcrumb">
            <li>广告管理</li>
            <li class="active">广告列表</li>
        </ul>
        <!--breadcrumbs end -->
    </div>
</div>
<div class="row">
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-body">
                <form class="form-inline">
                    <div class="form-group">
                        <label for="userStatus">状态：</label>
                        <select id="userStatus" class="form-control input-sm">
                            <option value="">所有</option>
                            <option value="1">正常</option>
                            <option value="0">禁用</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label>创建时间：</label>
                        <input type="text" id="userDateStart" class="form-control input-sm" maxlength="10">
                        <label>-</label>
                        <input type="text" id="userDateEnd" class="form-control input-sm" maxlength="10">
                    </div>
                    <div class="pull-right">
                        <div class="form-group">
                            <label class="sr-only" for="userSearch">根据投票名称查找</label>
                            <input type="search" id="userSearch" class="form-control input-sm" placeholder="根据投票名称查找">
                        </div>
                        <button id="userSearchBtn" class="btn btn-primary" type="button">查询</button>
                    </div>
                </form>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-body">
                <button type="button" id="btnAdd" class="btn btn-primary btn-sm">添加广告</button>
                <button type="button" id="btnOffAll" class="btn btn-primary btn-sm" style="display: none">批量禁用</button>
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th><input id="checkAll" type="checkbox"></th>
                        <th>广告标题</th>
                        <th>状态</th>
                        <th>创建时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody id="mainbody">
                    </tbody>
                </table>
                <div id="page" class="row">
                    <div class="col-xs-6">
                        <div class="dataTables_info">总共 <i class="page-totalcount text-success">0</i> 条记录,当前 <i class="page-pageno text-success">0</i> / <i class="page-pagecount text-success">0</i> 页，每页显示
                            <select class="page-pagesize">
                                <option value="10">10</option>
                                <option value="20">20</option>
                                <option value="50">50</option>
                            </select> 条记录
                        </div>
                    </div>
                    <div class="col-xs-6">
                        <div class="dataTables_paginate pull-right">
                            <div class="pagination_c">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="staffDialog" class="staff-dialog" style="display: none;">
    <div class="col-md-3" id="login-wrapper">
        <div class="panel panel-primary animated flipInY">
            <img src="" id="adImg">
        </div>
    </div>
</div>

<script src="/shop/ad/list.js"></script>